﻿@model SAKS.Models.ProjectProcess
@{
    ViewBag.Title = "项目审核";
    Layout = "~/Views/Project/_ProjectLayout.cshtml";
}
<script type="text/javascript">
    $(function () {
        $("button").button();
    });
</script>
<h3>项目名称</h3>
<p>@ViewBag.ProjectName</p>
<h3>最新进展</h3>
<div>
@if (Model == null)
{
    Html.Raw("没有进展需要审核");
}
else
{
        <div class="display-box">
        <div class="display-label">创建日期</div>
        <div class="display-field">@Model.CreatedDate.ToString("yyyy-MM-dd")</div>

        <div class="display-label">年度研究内容</div>
        <div class="display-field">@Model.AnnulReachContent</div>
    
        <div class="display-label">年度工作指标</div>
        <div class="display-field">@Model.AnnulMajorMark</div> 

        <div class="display-label">审核类型</div>
        <div class="display-field">@Model.ManagementType</div>

        <div class="display-label">归档日期</div>
        <div class="display-field">@String.Format("{0:g}", Model.ArchivedDate)</div>
     

   
        <div class="display-label">备注</div>
        <div class="display-field">@Model.Remarks</div>
        

         
    @if (Model.IsPassed == false) { 
        <form method="post">
            <div class="display-label"><button>批准通过审核</button></div>
            <input type="hidden" id="ProjectId" name="ProjectId" value="@ViewBag.ProjectId" />
            <input type="hidden" id="ProcessId" name="ProcessId" value="@Model.Id" />
        </form>
    }  
    else{
        <div class="display-label">通过审核</div>
        <div class="display-field">是</div>    
        
        <div class=" ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;width:200px;">
        <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>        项目暂时没有审核请求.</p>      
        </div>
    }
        </div>
}
</div>
